﻿#region
using System;
using System.Threading;
using System.Windows.Forms;

#endregion

namespace EndlessDownloader
{
    internal static class Program
    {
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            Application.ThreadException += Application_ThreadException;

            Application.Run(new MainForm());
        }

        private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
        {
            string message = "아래와 같은 예외가 발생하였습니다.\r\n" + e.Exception.Message + "\r\n" + e.Exception.StackTrace;
            MessageBox.Show(message);
        }
    }
}